package me.zhengjie.gas.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResponseDto {
	private String errMsg;
	private int errCode;
	private Object data;

	public ResponseDto(int code, String msg) {
		this.errMsg = msg;
		this.errCode = code;
		this.data = null;
	}

	public ResponseDto(int code, String msg, Object d) {
		this(code, msg);
		this.data = d;
	}
}
